package com.example.newsdaily.slice;

import com.example.newsdaily.ChangeCodeAbility;
import com.example.newsdaily.ResourceTable;
import com.example.newsdaily.UserAbility;
import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.content.Intent;
import ohos.aafwk.content.Operation;
import ohos.agp.components.Button;
import ohos.agp.components.Component;

public class DeveloperAbilitySlice extends AbilitySlice {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setUIContent(ResourceTable.Layout_ability_Developer);
        findComponentById(ResourceTable.Id_developer_back).setClickedListener(component -> {
            terminateAbility();
        });

    }

    @Override
    public void onActive() {
        super.onActive();
    }

    @Override
    public void onForeground(Intent intent) {
        super.onForeground(intent);
    }
}
